package com.zyf.chapter02.behavior.chain.achieve.first.v1;

/**
 * Handler 处理器实现
 * @author yifeng
 */
public class HandlerA extends Handler {
    @Override
    public void handle() {
        boolean handled = false;
        // do something
        //不能处理则交给后面的处理器
        if (!handled && successor != null) {
            successor.handle();
        }
    }
}
